package han.entity;

import java.util.Map;

/**
 * @author: Han
 * @date: 2018/7/17 10:32
 * @dscription: 群详细信息实体
 */
public class GroupEntity implements ContactEntity {
    /**
     * 群公告
     */
    private String memo;
    private long classes;
    private String fingermemo;
    /**
     * 创建时间
     */
    private long createTime;
    private long flag;
    /**
     * 等级
     */
    private int level;
    /**
     * 群名
     */
    private String name;
    /**
     * 群号
     */
    private long groupAccount;
    /**
     * 临时id
     */
    private long gid;
    /**
     * 临时id
     */
    private long code;
    /**
     * 群主临时id
     */
    private long owner;
    /**
     * 群主QQ号
     */
    private long ownerAccount;
    private int option;
    /**
     * 群成员
     */
    private Map<String, GroupMemberEntity> memberMap;

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public long getClasses() {
        return classes;
    }

    public void setClasses(long classes) {
        this.classes = classes;
    }

    public String getFingermemo() {
        return fingermemo;
    }

    public void setFingermemo(String fingermemo) {
        this.fingermemo = fingermemo;
    }

    public long getCode() {
        return code;
    }

    public void setCode(long code) {
        this.code = code;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getFlag() {
        return flag;
    }

    public void setFlag(long flag) {
        this.flag = flag;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getGid() {
        return gid;
    }

    public void setGid(long gid) {
        this.gid = gid;
    }

    public long getOwner() {
        return owner;
    }

    public void setOwner(long owner) {
        this.owner = owner;
    }

    public int getOption() {
        return option;
    }

    public void setOption(int option) {
        this.option = option;
    }

    public long getOwnerAccount() {
        return ownerAccount;
    }

    public void setOwnerAccount(long ownerAccount) {
        this.ownerAccount = ownerAccount;
    }

    public long getGroupAccount() {
        return groupAccount;
    }

    public void setGroupAccount(long groupAccount) {
        this.groupAccount = groupAccount;
    }

    public Map<String, GroupMemberEntity> getMemberMap() {
        return memberMap;
    }

    public void setMemberMap(Map<String, GroupMemberEntity> memberMap) {
        this.memberMap = memberMap;
    }

    @Override
    public String toString() {
        return name;
    }

    @Override
    public long getUin() {
        return gid;
    }
}
